home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 38
/
Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso
/
-screenplay-
/
shareware
/
wreckage
/
source
/
assembly
/
backup
/
asm_3d_a.asm
next >
Wrap
Assembly Source File
|
1999-02-08
|
482b
|
34 lines
CLR.w d0
_asm3d_1:
MOVE.b (a0) ,d0 ;app
MOVE.l (a1)+ ,d1 ;x
MOVE.l (a2)+ ,d2 ;z
MOVE.l (a3)+ ,d3 ;y
TST.b d0
BEQ _asm3d_2
; ASR.l #8,d3
; ASR.l #8,d3
TST.l d3
BLE _asm3d_2
DIVS.l d3 ,d1
; CLR.w d1
SWAP d1
DIVS.l d3 ,d2
; CLR.w d2
SWAP d2
BRA _asm3d_2a
_asm3d_2:
CLR.w d0
_asm3d_2a:
MOVE.w d1 ,(a4)+ ;sx
MOVE.w d2 ,(a4)+ ;sy
MOVE.w d0 ,(a4)+ ;app
SUBQ.l #1 ,d7 ;points-1
BGT _asm3d_1 ;until points<=0